﻿using System.Linq;

namespace Anmlz.Data.UnitOfWork
{
    public partial class UnitOfWork
    {
        public bool DbInitialized {
            get
            {
                return this.UserRoles.All.Any() &&
                   this.UserTypes.All.Any() &&
                   this.Currencies.All.Any() &&
                   this.CreatureTypes.All.Any() &&
                   this.Countries.All.Any() &&
                   this.Cities.All.Any() &&
                   this.CreatureSizeTypes.All.Any() &&
                   this.BreedGroups.All.Any();
            }
        }
    }
}
